﻿using System.Data;
using BookTheBook.Data.NameDefinitions;
using Migrator.Framework;

namespace BookTheBook.Migrations
{
    [Migration(9)]
    public class _009_AddedRatingAndUrlColumns : Migration
    {
        public override void Up()
        {
            Database.AddColumn(TableNames.Book, ColumnNames.Rating, DbType.Decimal);
            Database.AddColumn(TableNames.Book, ColumnNames.DetailsUrl, DbType.String);
        }

        public override void Down()
        {
            Database.RemoveColumn(TableNames.Book, ColumnNames.Rating);
            Database.RemoveColumn(TableNames.Book, ColumnNames.DetailsUrl);
        }
    }
}
